package org.jeecg.modules.student_course.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.student_course.entity.AstuUserCourse;
import org.jeecg.modules.student_course.mapper.AstuUserCourseMapper;
import org.jeecg.modules.student_course.service.IAstuUserCourseService;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;


import javax.annotation.Resource;

/**
 * @Description: 课程和用户表
 * @Author: jeecg-boot
 * @Date:   2020-11-05
 * @Version: V1.0
 */
@Service
public class AstuUserCourseServiceImpl extends ServiceImpl<AstuUserCourseMapper, AstuUserCourse> implements IAstuUserCourseService {
    @Resource
    private AstuUserCourseMapper astuUserCourseMapper;
    @Override
    public AstuUserCourse selectAstuUserCoirseByUseriAndCourseid(String userid, String courseid) {
        AstuUserCourse astuUserCourse = astuUserCourseMapper.selectAstuUserCoirseByUseriAndCourseid(userid, courseid);
        return astuUserCourse;
    }
}
